package com.unisound.tracelog.common.model.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * 分页实体
 *
 * @version V1.0
 */
public class PageResult<E> implements Serializable {
    private static final long serialVersionUID = 1L;

    private long totalItemNum;
    private long totalPageNum;
    private long currentPageNum;
    private long pageSize;
    private List<E> data;

    public PageResult() {
    }

    public PageResult(long totalItemNum, long totalPageNum, long currentPageNum, long pageSize, List<E> data) {
        this.totalItemNum = totalItemNum;
        this.totalPageNum = totalPageNum;
        this.currentPageNum = currentPageNum;
        this.pageSize = pageSize;
        this.data = data;
    }

    public long getTotalItemNum() {
        return totalItemNum;
    }

    public void setTotalItemNum(long totalItemNum) {
        this.totalItemNum = totalItemNum;
    }

    public long getTotalPageNum() {
        return totalPageNum;
    }

    public void setTotalPageNum(long totalPageNum) {
        this.totalPageNum = totalPageNum;
    }

    public long getCurrentPageNum() {
        return currentPageNum;
    }

    public void setCurrentPageNum(long currentPageNum) {
        this.currentPageNum = currentPageNum;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    public List<E> getData() {
        return data;
    }

    public void setData(List<E> data) {
        this.data = data;
    }
}
